package c1703;

import java.util.*;

public class E {
    public static void main(String[] args){
        Scanner cin = new Scanner(System.in);
        int n = cin.nextInt();
        int[] a = new int[10];
        Arrays.fill(a,0);
        for(int i=1; i<=n; i++) {
            int temp = i;
            while(temp>0) {
                int k = temp % 10;
                temp /= 10;
                a[k]++;
            }
        }
        for(int i=0;i<10;i++){
            System.out.println(a[i]);
        }
    }
}